package com.yh.service1;

import com.yh.service1.api.Dubbo1Service;
import com.yh.service2.api.Dubbo2Service;
import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.config.annotation.Service;

/**
 * @AUTHOR: yadong
 * @DATE: 2022/8/1 15:11
 * @DESC:
 */
@Service
public class DubboService1Impl implements Dubbo1Service {

    @Reference
    private Dubbo2Service dubbo2Service;

    public String fun() {
        String res = dubbo2Service.dubboService();
        System.out.println("fun service1........");
        return "fun service1 | "+res;
    }
}
